#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class GraduationInfo : Business.BusinessBase<GraduationInfo, int>
	{
		#region Fields and Properties

		private String protcolCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ProtcolCode
		{
			get { return protcolCode; }
			set
			{
				if (value != protcolCode)
				{
					MarkChanged("ProtcolCode");
					protcolCode = value;
				}
			}
		}

		private String adderCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String AdderCode
		{
			get { return adderCode; }
			set
			{
				if (value != adderCode)
				{
					MarkChanged("AdderCode");
					adderCode = value;
				}
			}
		}

		private String employCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String EmployCate
		{
			get { return employCate; }
			set
			{
				if (value != employCate)
				{
					MarkChanged("EmployCate");
					employCate = value;
				}
			}
		}

		private DateTime addDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime AddDate
		{
			get { return addDate; }
			set
			{
				if (value != addDate)
				{
					MarkChanged("AddDate");
					addDate = value;
				}
			}
		}

		private DateTime proDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime ProDate
		{
			get { return proDate; }
			set
			{
				if (value != proDate)
				{
					MarkChanged("ProDate");
					proDate = value;
				}
			}
		}

		private String entName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String EntName
		{
			get { return entName; }
			set
			{
				if (value != entName)
				{
					MarkChanged("EntName");
					entName = value;
				}
			}
		}

		private String entCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String EntCode
		{
			get { return entCode; }
			set
			{
				if (value != entCode)
				{
					MarkChanged("EntCode");
					entCode = value;
				}
			}
		}

		private DateTime employDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime EmployDate
		{
			get { return employDate; }
			set
			{
				if (value != employDate)
				{
					MarkChanged("EmployDate");
					employDate = value;
				}
			}
		}

		private String stdCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StdCode
		{
			get { return stdCode; }
			set
			{
				if (value != stdCode)
				{
					MarkChanged("StdCode");
					stdCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public GraduationInfo()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override GraduationInfo DataSelect(int id)
		{
			return Services.DALService.GraduationInfoService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.GraduationInfoService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.GraduationInfoService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.GraduationInfoService.Delete(this);
		}

		#endregion Base overrides
	}
}
